package com.jcl.cloud.services.crawler.email.task;

public class CatchEmailHandlerWrap implements Runnable {

    private CatchEmailHandler catchEmailHandler;
    private String crawlerId;


    @Override
    public void run() {
        try {
            this.catchEmailHandler.execute(crawlerId);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }




    public CatchEmailHandlerWrap(CatchEmailHandler catchEmailHandler,String crawlerId){
        this.catchEmailHandler = catchEmailHandler;
        this.crawlerId = crawlerId;
    }
}
